package com.example.sea.core.data.user.mapper;

import com.example.sea.core.data.user.entity.AuthRole;
import com.example.sea.core.data.user.model.AuthRolePermissionModel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AuthRoleMapper {
    int deleteByPrimaryKey(String id);

    int insert(AuthRole record);

    int insertSelective(AuthRole record);

    AuthRole selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(AuthRole record);

    int updateByPrimaryKey(AuthRole record);

    List<AuthRole> selectListByParamsMap(Map params);

    List<AuthRolePermissionModel> selectListByRoleIdToRolePermission(String roleId);

    List<AuthRolePermissionModel> selectListByPermissionIdToRolePermission(String permissionId);

    void deleteRolePermissionByRoleId(String roleId);

    int insertRolePermission(Map params);
}